// 关于报表的接口

import request from '@/utils/request';

// 获取首页报表接口
export const getHomeChart = () => {
    return request({
        method: 'get',
        url: '/order/totaldata'
    })
}


// 获取订单报表接口
export const getOrderChart = (date) => {
    return request({
        method: 'get',
        url: '/order/ordertotal',
        params: {
            date
        }
    })
}